FROM centos:8
RUN yum install libnsl -y
#RUN yum install sysvinit-tools -y
COPY ./setup-dir /opt/setup-tmp
RUN chmod +x /opt/setup-tmp/ShenTong7.0_linux64/setup && mkdir -p /opt/ShenTong && cp /opt/setup-tmp/docker-entrypoint.sh /opt/ShenTong/docker-entrypoint.sh && chmod +x /opt/ShenTong/docker-entrypoint.sh
RUN cp -r /opt/setup-tmp/ShenTong7.0_linux64/license /opt/ShenTong/license
RUN /opt/setup-tmp/ShenTong7.0_linux64/setup -f /opt/setup-tmp/ShenTong7.0_linux64/auto-install.xml
VOLUME /opt/ShenTong
RUN rm -rf /opt/setup-tmp
ENTRYPOINT "/opt/ShenTong/docker-entrypoint.sh"
